function [CNC_state,ask_list,CNC_swork]=asklist(CNC_state,ask_list,CNC_swork,CNC_work,numberof1)
ask_list=[];
for i=1:numberof1
    if CNC_swork(i)
        if (CNC_state(i)-CNC_work(1))>= 0
            ask_list=[ask_list,i];
        end
    else
        CNC_state(i)=0;
        ask_list=[ask_list,i];
    end
end
end